package com.ccit.springbootlaw.service;

import com.ccit.springbootlaw.pojo.Subscription;

import java.util.List;

public interface SubscriptionService {
    // 根据ID查询权益包
    Subscription findById(int id);

    // 根据传入实体进行多条件查询的方法
    List<Subscription> findBySubscriptionWithTypeNameLike(Subscription subscription);

    // 插入新的权益包
    int insertSubscription(Subscription subscription);

    // 更新权益包信息
    int updateSubscription(Subscription subscription);

    // 删除权益包
    int deleteSubscriptionById(int id);

    // 查询所有权益包
    List<Subscription> findAllSubscriptions();
}